#!/bin/bash
json_file="../terraform/envs/$PROJECT_ENV/ecs/terraform.tfstate"
#Generate hosts file
jq -r '.outputs.ecs_info.value[] | to_entries[] | "\(.value) \(.key)"' "$json_file" > /tmp/hosts
